<?php
$table = new Swoole\Table(1024);
$table->column("uid",swoole_table::TYPE_INT);
$table->column("username",swoole_table::TYPE_STRING, 255);
$table->column("age",swoole_table::TYPE_INT);
$table->column("fee",swoole_table::TYPE_FLOAT);
$table->create();
for ($i = 1; $i < 5; $i++) {
    $table->set($i,["uid"=>$i,"username"=>'zhangsan',"age"=>10,"fee"=>100009.00]);
}
$table->incr(1,"age");
$table->decr(1,"fee",3);
var_dump($table->get(1));
var_dump($table->exists(1));
var_dump($table->count());
var_dump($table->del(2));
var_dump($table->stats());
foreach ($table as $k => $v) {
    var_dump($v);
}
